package com.ms.p2p.dao;


import com.ms.p2p.entity.account.AccountRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface MemberAccountRecordDao extends CrudDao<AccountRecord> {

	List<Map<String, Object>> findPager(@Param("begin") int begin,
										@Param("size") Integer size, @Param("userId") String userId,
										@Param("userName") String userName,
										@Param("account_type") String account_type,
										@Param("begin_date") String begin_date,
										@Param("end_date") String end_date);

	int findCount(@Param("userId") String userId,
				  @Param("userName") String userName,
				  @Param("account_type") String account_type,
				  @Param("begin_date") String begin_date,
				  @Param("end_date") String end_date);

	Map<String, Object> caculateMoney(@Param("flow") String flow,
									  @Param("user_id") String user_id);

}
